<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="templates/template.xhtml">
        <h:head>
            <title>Esquemas</title>
        </h:head>
        <ui:define name="content">
            <h:body>
                <h:form>

                    <!-- Tabela -->

                    <center>
                        <p:dataTable id="resultado" var="esquema" value="#{esquemaBean.esquemas}"  
                                     selection="#{esquemaBean.esquema}" selectionMode="single" update="panel">

                            <f:facet name="header">
                                #{msgs.elementosDD}
                            </f:facet>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="#{msgs.elemento}"/>
                                </f:facet>
                                <h:outputText value="#{esquema.nome}"/>
                            </p:column>


                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="#{msgs.nome}"/>
                                </f:facet>
                                <h:outputText value="#{esquema.categoria}"/>
                            </p:column>


                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="#{msgs.descricao}"/>
                                </f:facet>
                                <h:outputText value="#{esquema.nomeProjeto}"/>
                            </p:column>

                        </p:dataTable>
                    </center>
                </h:form>




            </h:body>
        </ui:define>

    </ui:composition>
</html>